<%@page import="java.io.* , java.util.*, java.sql.*, com.myapp.struts.actionform.*, com.myapp.struts.dao.*, com.myapp.struts.beans.*"%>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:html lang="true">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title><bean:message key="welcome.title"/></title>
        <html:base/>
        <link href="../../../../css/cms.css" rel="stylesheet" type="text/css">
        <style type="text/css">
            <!--
            .style1 {
                color: #D3F1D5;
                font-weight: bold;
            }
            -->
        </style>
    </head>
    <body>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td align="center" valign="middle">
                    <html:form action="inssupp" method="POST">
                        <table width="100%" height="210" border="0" align="center" cellpadding="0" cellspacing="0"   style="border-right: #000000 1px solid;
                               border-top: #000000 1px solid; border-left: #000000 1px solid;  border-bottom: #000000 1px solid; font-size: 9pt; color: #000000; font-family: Arial;">
                      <tr>
                                <th height="29" colspan="4"><strong>Supplier Master</strong></th>
                            </tr>
                            <tr>
                                <td width="219" height="15"><strong>Supplier Name </strong></td>
                                <td width="260"><html:text property="supplierName"/></td>
                                <td width="194"><strong>PAN Number </strong></td>
                              <td width="320"><html:text property="panNo"/></td>
                          </tr>
                            <tr>
                              <td height="15">&nbsp;</td>
                              <td><html:errors property="supplierName"/></td>
                              <td>&nbsp;</td>
                              <td><html:errors property="panno"/></td>
                            </tr>
                            <tr>
                                <td height="15"><strong>Address</strong></td>
                                <td><html:text property="address" /></td>
                                <td><strong>Sales Tax Number </strong></td>
                                <td><html:text property="staxNum" /></td>
                            </tr>
                            <tr>
                              <td height="15">&nbsp;</td>
                              <td><html:errors property="address"/></td>
                              <td>&nbsp;</td>
                              <td><html:errors property="staxnum"/></td>
                            </tr>
                            <tr>
                                <td height="15"><strong>Phone Number</strong></td>
                                <td><html:text property="phoneNo"/></td>
                                <td><strong>Sales Tax Type</strong></td>
                                <td><html:text property="staxType"/>                                </td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                              <td><html:errors property="phoneno"/></td>
                              <td>&nbsp;</td>
                              <td><html:errors property="staxtype"/></td>
                            </tr>
                            <tr>
                                <td height="15" ><strong>Fax Number </strong></td>
                                <td><html:text property="faxNo"/></td>
                                <td><strong>Monitory Limit </strong></td>
                                <td><html:text property="monitoryLimit"/></td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                              <td><html:errors property="faxno"/></td>
                              <td>&nbsp;</td>
                              <td><html:errors property="monitorylimit"/></td>
                            </tr>
                            <tr>
                                <td height="18"><strong>Terms and Conditions</strong></td>
                                <td><html:text property="tandc"/></td>
                                <td><strong>Loction</strong></td>
                                <td><strong><html:select property="location">
                                            <html:option value="Select"></html:option>
                                            <%
                                    LocationMasterDao imdao = new LocationMasterDao();
                                    Vector gp = imdao.getLocations();
                                    if (gp != null) {
                                        Iterator itg = gp.iterator();
                                        while (itg.hasNext()) {
                                            LocationMasterFormBean gb = (LocationMasterFormBean) itg.next();
                                            String pname = gb.getLocationCode();
                                            %>
                                            <html:option value="<%=pname%>"><%=pname%></html:option>
                                            <%}

                              }%>
                                        </html:select>
                                    </strong></td>
                            </tr>
                            <tr>
                              <td height="15" >&nbsp;</td>
                              <td ><html:errors property="tandc"/></td>
                              <td >&nbsp;</td>
                              <td ><html:errors property="location"/></td>
                            </tr>
                            <tr>
                                <td height="24" colspan="4" align="center"><html:submit/></td>
                            </tr>
                        </table>
                </html:form></td>
            </tr>
        </table>
    </body>
</html:html>
